#pragma once
#include <iostream>
#include <functional>
#include <vector>
#include <ctime>
#include <sys/types.h>
#include <unistd.h>
using namespace std;

typedef function<void()> task_t;
void Download()
{
    cout<<"嘿嘿"<<endl;
}

class Init
{
public:
    vector<task_t> tasks;
    Init()
    {
        tasks.push_back(Download);
    }
    void runtask()
    {
        tasks[0]();
    }
};
Init init;//直接定义出一个对象